class Solution:

    def replaceSpace(self, s: str) -> str:
        return s.replace(' ', '%20')


so = Solution()
print(so.replaceSpace("We are happy."))